/**
 * 
 */
package com.gs.practice.thread.ch01;

/**
 * @author Sabuj Das | sabuj.das@gmail.com
 * 
 */
public class Calculator implements Runnable {

	private int number;

	/**
	 * @param number
	 */
	public Calculator(int number) {
		this.number = number;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Runnable#run()
	 */
	public void run() {
		for (int i = 1; i <= 10; i++) {
			System.out.printf("%s: %d * %d = %d\n", Thread.currentThread()
					.getName(), number, i, i * number);
		}
	}

}
